------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\jar68\OneDrive\Ongoing Work\Party Cues and Suspicion Paper\Final Datavserse\Figure2\figure2_tableob2.log
  log type:  text
 opened on:  23 Jun 2021, 11:43:34

. 
. **This data file is created in the R sytax for this figure
. use "figure2_pooled.dta"

. set more off

. 
. /****Some Initial Cleaning*****/
. label var treat "Treatment Condition"

. label var support01 "Policy Support"

. label var stereo "Policy Stereotypicality"

. label var experiment "Experiment"

. 
. /*****Models******/
. eststo clear

. eststo: regress support01 i.treat##i.stereo i.experiment

      Source |       SS           df       MS      Number of obs   =     4,039
-------------+----------------------------------   F(6, 4032)      =     28.10
       Model |  13.6060839         6  2.26768065   Prob > F        =    0.0000
    Residual |  325.365023     4,032   .08069569   R-squared       =    0.0401
-------------+----------------------------------   Adj R-squared   =    0.0387
       Total |  338.971107     4,038  .083945296   Root MSE        =    .28407

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |    .095941   .0176613     5.43   0.000      .061315    .1305669
              Cue w/Insinuation  |   .0360373   .0156028     2.31   0.021     .0054472    .0666274
                                 |
                          stereo |
                  Stereotypical  |   .1048575   .0177981     5.89   0.000     .0699634    .1397516
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |   -.018001    .025163    -0.72   0.474    -.0673343    .0313324
Cue w/Insinuation#Stereotypical  |  -.0066177   .0218695    -0.30   0.762    -.0494939    .0362586
                                 |
                      experiment |
                   Experiment 3  |    .017115   .0094779     1.81   0.071     -.001467     .035697
                           _cons |   .4091262    .013361    30.62   0.000     .3829313     .435321
--------------------------------------------------------------------------------------------------
(est1 stored)

. eststo: regress support01 i.treat##i.stereo if experiment == 1

      Source |       SS           df       MS      Number of obs   =     1,581
-------------+----------------------------------   F(5, 1575)      =     16.85
       Model |  6.21782708         5  1.24356542   Prob > F        =    0.0000
    Residual |  116.219112     1,575  .073789912   R-squared       =    0.0508
-------------+----------------------------------   Adj R-squared   =    0.0478
       Total |  122.436939     1,580  .077491733   Root MSE        =    .27164

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |   .0916206   .0236437     3.88   0.000     .0452443     .137997
              Cue w/Insinuation  |   .0596815   .0236437     2.52   0.012     .0133051    .1060578
                                 |
                          stereo |
                  Stereotypical  |   .1306224   .0236891     5.51   0.000      .084157    .1770879
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |  -.0264399   .0335009    -0.79   0.430     -.092151    .0392712
Cue w/Insinuation#Stereotypical  |  -.0478156   .0334537    -1.43   0.153     -.113434    .0178028
                                 |
                           _cons |   .3981132   .0166869    23.86   0.000     .3653823    .4308441
--------------------------------------------------------------------------------------------------
(est2 stored)

. eststo: regress support01 i.treat##i.stereo if experiment == 2

      Source |       SS           df       MS      Number of obs   =     2,458
-------------+----------------------------------   F(5, 2452)      =     17.82
       Model |  7.58491859         5  1.51698372   Prob > F        =    0.0000
    Residual |  208.776042     2,452  .085145205   R-squared       =    0.0351
-------------+----------------------------------   Adj R-squared   =    0.0331
       Total |   216.36096     2,457  .088058999   Root MSE        =     .2918

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |   .0996356   .0259268     3.84   0.000     .0487949    .1504763
              Cue w/Insinuation  |   .0197746   .0214173     0.92   0.356    -.0222232    .0617725
                                 |
                          stereo |
                  Stereotypical  |   .0773905   .0262838     2.94   0.003     .0258498    .1289311
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |  -.0082743   .0371569    -0.22   0.824    -.0811365    .0645879
Cue w/Insinuation#Stereotypical  |   .0263273   .0303741     0.87   0.386    -.0332342    .0858888
                                 |
                           _cons |   .4380567   .0185666    23.59   0.000     .4016489    .4744645
--------------------------------------------------------------------------------------------------
(est3 stored)

. 
. /*****Table******/
. esttab using "figure2_table.rtf", replace ///
>         onecell label nobaselevels b(2) se star(* 0.05 ** 0.01 *** 0.001) ///
>         mtitles("Pooled" "Exp 2." "Exp. 3") ///
>         title("{\b Table OB2:} Figure 2 Analyses") ///
>         addnotes("The baseline category for the cue treatment is the No Cue condition. The base category for policy stereotypicality is counter-stereotypical. The bas
> e for experiment is Experiment 2.")
(note: file figure2_table.rtf not found)
(output written to figure2_table.rtf)

. 
. /******Calculate marginal effect, diff in diff*******/
. 
. *Model 1: Stereotypical
. regress support01 i.treat##i.stereo i.experiment

      Source |       SS           df       MS      Number of obs   =     4,039
-------------+----------------------------------   F(6, 4032)      =     28.10
       Model |  13.6060839         6  2.26768065   Prob > F        =    0.0000
    Residual |  325.365023     4,032   .08069569   R-squared       =    0.0401
-------------+----------------------------------   Adj R-squared   =    0.0387
       Total |  338.971107     4,038  .083945296   Root MSE        =    .28407

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |    .095941   .0176613     5.43   0.000      .061315    .1305669
              Cue w/Insinuation  |   .0360373   .0156028     2.31   0.021     .0054472    .0666274
                                 |
                          stereo |
                  Stereotypical  |   .1048575   .0177981     5.89   0.000     .0699634    .1397516
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |   -.018001    .025163    -0.72   0.474    -.0673343    .0313324
Cue w/Insinuation#Stereotypical  |  -.0066177   .0218695    -0.30   0.762    -.0494939    .0362586
                                 |
                      experiment |
                   Experiment 3  |    .017115   .0094779     1.81   0.071     -.001467     .035697
                           _cons |   .4091262    .013361    30.62   0.000     .3829313     .435321
--------------------------------------------------------------------------------------------------

.         margins, dydx(treat) by(stereo) post coeflegend

Average marginal effects                        Number of obs     =      4,039
Model VCE    : OLS

Expression   : Linear prediction, predict()
dy/dx w.r.t. : 2.treat 3.treat
over         : stereo

----------------------------------------------------------------------------------------
                       |      dy/dx  Legend
-----------------------+----------------------------------------------------------------
1.treat                |  (base outcome)
-----------------------+----------------------------------------------------------------
2.treat                |
                stereo |
Counter-Stereotypical  |    .095941  _b[2.treat:1bn.stereo]
        Stereotypical  |     .07794  _b[2.treat:2.stereo]
-----------------------+----------------------------------------------------------------
3.treat                |
                stereo |
Counter-Stereotypical  |   .0360373  _b[3.treat:1bn.stereo]
        Stereotypical  |   .0294196  _b[3.treat:2.stereo]
----------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

.         lincomest _b[2.treat:2.stereo] - _b[3.treat:2.stereo]
Confidence interval for formula:
_b[2.treat:2.stereo]-_b[3.treat:2.stereo]

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0485204   .0158008     3.07   0.002      .017542    .0794987
------------------------------------------------------------------------------

.         parmest, label saving("pooled_stereotypical", replace)
file pooled_stereotypical.dta saved

.         
. *Model 1: Couner-Stereotypical
. regress support01 i.treat##i.stereo i.experiment

      Source |       SS           df       MS      Number of obs   =     4,039
-------------+----------------------------------   F(6, 4032)      =     28.10
       Model |  13.6060839         6  2.26768065   Prob > F        =    0.0000
    Residual |  325.365023     4,032   .08069569   R-squared       =    0.0401
-------------+----------------------------------   Adj R-squared   =    0.0387
       Total |  338.971107     4,038  .083945296   Root MSE        =    .28407

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |    .095941   .0176613     5.43   0.000      .061315    .1305669
              Cue w/Insinuation  |   .0360373   .0156028     2.31   0.021     .0054472    .0666274
                                 |
                          stereo |
                  Stereotypical  |   .1048575   .0177981     5.89   0.000     .0699634    .1397516
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |   -.018001    .025163    -0.72   0.474    -.0673343    .0313324
Cue w/Insinuation#Stereotypical  |  -.0066177   .0218695    -0.30   0.762    -.0494939    .0362586
                                 |
                      experiment |
                   Experiment 3  |    .017115   .0094779     1.81   0.071     -.001467     .035697
                           _cons |   .4091262    .013361    30.62   0.000     .3829313     .435321
--------------------------------------------------------------------------------------------------

.         margins, dydx(treat) by(stereo) post coeflegend

Average marginal effects                        Number of obs     =      4,039
Model VCE    : OLS

Expression   : Linear prediction, predict()
dy/dx w.r.t. : 2.treat 3.treat
over         : stereo

----------------------------------------------------------------------------------------
                       |      dy/dx  Legend
-----------------------+----------------------------------------------------------------
1.treat                |  (base outcome)
-----------------------+----------------------------------------------------------------
2.treat                |
                stereo |
Counter-Stereotypical  |    .095941  _b[2.treat:1bn.stereo]
        Stereotypical  |     .07794  _b[2.treat:2.stereo]
-----------------------+----------------------------------------------------------------
3.treat                |
                stereo |
Counter-Stereotypical  |   .0360373  _b[3.treat:1bn.stereo]
        Stereotypical  |   .0294196  _b[3.treat:2.stereo]
----------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

.         lincomest _b[2.treat:1bn.stereo] - _b[3.treat:1bn.stereo]
Confidence interval for formula:
_b[2.treat:1bn.stereo]-_b[3.treat:1bn.stereo]

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0599037   .0154749     3.87   0.000     .0295643     .090243
------------------------------------------------------------------------------

.         parmest, label saving("pooled_counterstereotypical", replace)
file pooled_counterstereotypical.dta saved

.         
. *Model 2: Stereotypical
. regress support01 i.treat##i.stereo if experiment == 1

      Source |       SS           df       MS      Number of obs   =     1,581
-------------+----------------------------------   F(5, 1575)      =     16.85
       Model |  6.21782708         5  1.24356542   Prob > F        =    0.0000
    Residual |  116.219112     1,575  .073789912   R-squared       =    0.0508
-------------+----------------------------------   Adj R-squared   =    0.0478
       Total |  122.436939     1,580  .077491733   Root MSE        =    .27164

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |   .0916206   .0236437     3.88   0.000     .0452443     .137997
              Cue w/Insinuation  |   .0596815   .0236437     2.52   0.012     .0133051    .1060578
                                 |
                          stereo |
                  Stereotypical  |   .1306224   .0236891     5.51   0.000      .084157    .1770879
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |  -.0264399   .0335009    -0.79   0.430     -.092151    .0392712
Cue w/Insinuation#Stereotypical  |  -.0478156   .0334537    -1.43   0.153     -.113434    .0178028
                                 |
                           _cons |   .3981132   .0166869    23.86   0.000     .3653823    .4308441
--------------------------------------------------------------------------------------------------

.         margins, dydx(treat) by(stereo) post coeflegend

Average marginal effects                        Number of obs     =      1,581
Model VCE    : OLS

Expression   : Linear prediction, predict()
dy/dx w.r.t. : 2.treat 3.treat
over         : stereo

----------------------------------------------------------------------------------------
                       |      dy/dx  Legend
-----------------------+----------------------------------------------------------------
1.treat                |  (base outcome)
-----------------------+----------------------------------------------------------------
2.treat                |
                stereo |
Counter-Stereotypical  |   .0916206  _b[2.treat:1bn.stereo]
        Stereotypical  |   .0651807  _b[2.treat:2.stereo]
-----------------------+----------------------------------------------------------------
3.treat                |
                stereo |
Counter-Stereotypical  |   .0596815  _b[3.treat:1bn.stereo]
        Stereotypical  |   .0118659  _b[3.treat:2.stereo]
----------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

.         lincomest _b[2.treat:2.stereo] - _b[3.treat:2.stereo]
Confidence interval for formula:
_b[2.treat:2.stereo]-_b[3.treat:2.stereo]

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0533148   .0236215     2.26   0.024     .0069819    .0996478
------------------------------------------------------------------------------

.         parmest, label saving("exp2_stereotypical", replace)
file exp2_stereotypical.dta saved

.         
. *Model 2: Couner-Stereotypical
. regress support01 i.treat##i.stereo if experiment == 1

      Source |       SS           df       MS      Number of obs   =     1,581
-------------+----------------------------------   F(5, 1575)      =     16.85
       Model |  6.21782708         5  1.24356542   Prob > F        =    0.0000
    Residual |  116.219112     1,575  .073789912   R-squared       =    0.0508
-------------+----------------------------------   Adj R-squared   =    0.0478
       Total |  122.436939     1,580  .077491733   Root MSE        =    .27164

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |   .0916206   .0236437     3.88   0.000     .0452443     .137997
              Cue w/Insinuation  |   .0596815   .0236437     2.52   0.012     .0133051    .1060578
                                 |
                          stereo |
                  Stereotypical  |   .1306224   .0236891     5.51   0.000      .084157    .1770879
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |  -.0264399   .0335009    -0.79   0.430     -.092151    .0392712
Cue w/Insinuation#Stereotypical  |  -.0478156   .0334537    -1.43   0.153     -.113434    .0178028
                                 |
                           _cons |   .3981132   .0166869    23.86   0.000     .3653823    .4308441
--------------------------------------------------------------------------------------------------

.         margins, dydx(treat) by(stereo) post coeflegend

Average marginal effects                        Number of obs     =      1,581
Model VCE    : OLS

Expression   : Linear prediction, predict()
dy/dx w.r.t. : 2.treat 3.treat
over         : stereo

----------------------------------------------------------------------------------------
                       |      dy/dx  Legend
-----------------------+----------------------------------------------------------------
1.treat                |  (base outcome)
-----------------------+----------------------------------------------------------------
2.treat                |
                stereo |
Counter-Stereotypical  |   .0916206  _b[2.treat:1bn.stereo]
        Stereotypical  |   .0651807  _b[2.treat:2.stereo]
-----------------------+----------------------------------------------------------------
3.treat                |
                stereo |
Counter-Stereotypical  |   .0596815  _b[3.treat:1bn.stereo]
        Stereotypical  |   .0118659  _b[3.treat:2.stereo]
----------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

.         lincomest _b[2.treat:1bn.stereo] - _b[3.treat:1bn.stereo]
Confidence interval for formula:
_b[2.treat:1bn.stereo]-_b[3.treat:1bn.stereo]

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0319392   .0236884     1.35   0.178    -.0145249    .0784033
------------------------------------------------------------------------------

.         parmest, label saving("exp2_counterstereotypical", replace)
file exp2_counterstereotypical.dta saved

.         
. *Model 3: Stereotypical
. regress support01 i.treat##i.stereo if experiment == 2

      Source |       SS           df       MS      Number of obs   =     2,458
-------------+----------------------------------   F(5, 2452)      =     17.82
       Model |  7.58491859         5  1.51698372   Prob > F        =    0.0000
    Residual |  208.776042     2,452  .085145205   R-squared       =    0.0351
-------------+----------------------------------   Adj R-squared   =    0.0331
       Total |   216.36096     2,457  .088058999   Root MSE        =     .2918

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |   .0996356   .0259268     3.84   0.000     .0487949    .1504763
              Cue w/Insinuation  |   .0197746   .0214173     0.92   0.356    -.0222232    .0617725
                                 |
                          stereo |
                  Stereotypical  |   .0773905   .0262838     2.94   0.003     .0258498    .1289311
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |  -.0082743   .0371569    -0.22   0.824    -.0811365    .0645879
Cue w/Insinuation#Stereotypical  |   .0263273   .0303741     0.87   0.386    -.0332342    .0858888
                                 |
                           _cons |   .4380567   .0185666    23.59   0.000     .4016489    .4744645
--------------------------------------------------------------------------------------------------

.         margins, dydx(treat) by(stereo) post coeflegend

Average marginal effects                        Number of obs     =      2,458
Model VCE    : OLS

Expression   : Linear prediction, predict()
dy/dx w.r.t. : 2.treat 3.treat
over         : stereo

----------------------------------------------------------------------------------------
                       |      dy/dx  Legend
-----------------------+----------------------------------------------------------------
1.treat                |  (base outcome)
-----------------------+----------------------------------------------------------------
2.treat                |
                stereo |
Counter-Stereotypical  |   .0996356  _b[2.treat:1bn.stereo]
        Stereotypical  |   .0913614  _b[2.treat:2.stereo]
-----------------------+----------------------------------------------------------------
3.treat                |
                stereo |
Counter-Stereotypical  |   .0197746  _b[3.treat:1bn.stereo]
        Stereotypical  |   .0461019  _b[3.treat:2.stereo]
----------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

.         lincomest _b[2.treat:2.stereo] - _b[3.treat:2.stereo]
Confidence interval for formula:
_b[2.treat:2.stereo]-_b[3.treat:2.stereo]

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0452594   .0219109     2.07   0.039     .0022937    .0882251
------------------------------------------------------------------------------

.         parmest, label saving("exp3_stereotypical", replace)
file exp3_stereotypical.dta saved

.         
. *Model 3: Couner-Stereotypical
. regress support01 i.treat##i.stereo if experiment == 2

      Source |       SS           df       MS      Number of obs   =     2,458
-------------+----------------------------------   F(5, 2452)      =     17.82
       Model |  7.58491859         5  1.51698372   Prob > F        =    0.0000
    Residual |  208.776042     2,452  .085145205   R-squared       =    0.0351
-------------+----------------------------------   Adj R-squared   =    0.0331
       Total |   216.36096     2,457  .088058999   Root MSE        =     .2918

--------------------------------------------------------------------------------------------------
                       support01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------------------+----------------------------------------------------------------
                           treat |
                      Party Cue  |   .0996356   .0259268     3.84   0.000     .0487949    .1504763
              Cue w/Insinuation  |   .0197746   .0214173     0.92   0.356    -.0222232    .0617725
                                 |
                          stereo |
                  Stereotypical  |   .0773905   .0262838     2.94   0.003     .0258498    .1289311
                                 |
                    treat#stereo |
        Party Cue#Stereotypical  |  -.0082743   .0371569    -0.22   0.824    -.0811365    .0645879
Cue w/Insinuation#Stereotypical  |   .0263273   .0303741     0.87   0.386    -.0332342    .0858888
                                 |
                           _cons |   .4380567   .0185666    23.59   0.000     .4016489    .4744645
--------------------------------------------------------------------------------------------------

.         margins, dydx(treat) by(stereo) post coeflegend

Average marginal effects                        Number of obs     =      2,458
Model VCE    : OLS

Expression   : Linear prediction, predict()
dy/dx w.r.t. : 2.treat 3.treat
over         : stereo

----------------------------------------------------------------------------------------
                       |      dy/dx  Legend
-----------------------+----------------------------------------------------------------
1.treat                |  (base outcome)
-----------------------+----------------------------------------------------------------
2.treat                |
                stereo |
Counter-Stereotypical  |   .0996356  _b[2.treat:1bn.stereo]
        Stereotypical  |   .0913614  _b[2.treat:2.stereo]
-----------------------+----------------------------------------------------------------
3.treat                |
                stereo |
Counter-Stereotypical  |   .0197746  _b[3.treat:1bn.stereo]
        Stereotypical  |   .0461019  _b[3.treat:2.stereo]
----------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

.         lincomest _b[2.treat:1bn.stereo] - _b[3.treat:1bn.stereo]
Confidence interval for formula:
_b[2.treat:1bn.stereo]-_b[3.treat:1bn.stereo]

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |    .079861   .0210111     3.80   0.000     .0386597    .1210622
------------------------------------------------------------------------------

.         parmest, label saving("exp3_counterstereotypical", replace)
file exp3_counterstereotypical.dta saved

.         
.         
. log close
      name:  <unnamed>
       log:  C:\Users\jar68\OneDrive\Ongoing Work\Party Cues and Suspicion Paper\Final Datavserse\Figure2\figure2_tableob2.log
  log type:  text
 closed on:  23 Jun 2021, 11:43:35
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
